<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
            margin: 90px auto;

        }

        td {
            width: 150px;
            height: 20px;
            text-align: center;
            border: 1px solid #ccc;
            height: 60px;
        }

        .active {
            background-color: lightblue;
        }
    </style>
</head>

<body>
    <div id="app">
        <table cellspacing="0" cellpadding="0">
            <tr>
                <td>id</td>
                <td>姓名</td>
                <td>行呗</td>
                <td>成绩</td>
                <td>等级</td>
            </tr>
            <tr v-for="item in products">
                <td>{{item.id}}</td>
                <td>{{item.name}}</td>
                <td>{{item.sex}}</td>
                <td>{{item.score}}</td>
                <td v-if="item.score>90" class="">良好</td>
                <td v-else-if="item.score>=60 && score<80">及格</td>
                <td v-else="item.score<60">不及格</td>
            </tr>
        </table>

    </div>



    <script src="../../day01/code/vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                products: [
                    {
                        id: '1',
                        name: '诸葛亮',
                        sex: '男',
                        score: 98
                    },
                    {
                        id: '2',
                        name: '周瑜',
                        sex: '男',
                        score: 91
                    },
                    {
                        id: '3',
                        name: '阿斗',
                        sex: '男',
                        score: 92
                    },
                    {
                        id: '4',
                        name: '曹植',
                        sex: '男',
                        score: 93
                    },
                    {
                        id: '5',
                        name: '张飞',
                        sex: '男',
                        score: 12
                    },
                    {
                        id: '6',
                        name: '曹丕',
                        sex: '男',
                        score: 95
                    },
                ]
            },
            methods: {
            }
        })
    </script>
</body>

</html>